package com.example.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ：liukai
 * @date ：Created in 2021/9/7 9:33 上午
 * @description：
 * @modified By：
 * @version: $
 */
@FeignClient(value = "nacos-provider")
public interface IConsumerService {

    @GetMapping("/circuit/getOK/{id}")
    String getUserOK(@PathVariable("id") int id);

    @GetMapping("/circuit/getTimeOut/{id}")
    String getUserTimeOut(@PathVariable("id") int id);

}
